<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>W3C关于screen给出的例子</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<script type="text/javascript">
			function show_coords(event) {
				x = event.screenX;
				y = event.screenY;
				alert("screenX 坐标: " + x + ", screenY 坐标: " + y);
			}
		</script>
	</head>
	<body onmousedown="show_coords(event);">

		<p>
			鼠标在屏幕上的坐标：<br/>
			在页面中单击，将弹出鼠标单击位置的X和Y坐标。
		</p>

	</body>
</html>
